This gets the code to build without the rest of util-linux.
Signed-off-by: Colin Walters <walters@verbum.org>
--- /dev/null
+# Because this is imported code
+ul-jsonwrt*
#include <stdio.h>
#include <inttypes.h>
#include <ctype.h>
-#include <cctype.h>
-#include "c.h"
-#include "jsonwrt.h"
+// The following includes were modified from upstream
+#include "ul-jsonwrt.h"
+#include <glib.h>
+#define c_toupper g_ascii_toupper
+#define c_tolower g_ascii_tolower
+#define assert g_assert
/*
* Requirements enumerated via testing (V8, Firefox, IE11):
#ifndef UTIL_LINUX_JSONWRT_H
#define UTIL_LINUX_JSONWRT_H
+#include <stdio.h>
+#include <stdint.h>
+
enum {
UL_JSON_OBJECT,
UL_JSON_ARRAY,